package com.mic.yzzn.plc.model;

import java.util.Date;

/**
 * Created by ASH on 16/4/18.
 */
public class PLCResponse {
	
    /** 响应的时间 */
    private Date time = new Date();
    
    /** 
     * 响应的状态 (web 与 PLC 采控系统的交互)
	 * PLCResultTypeSucceed = 0,
	 * PLCResultTypeNetWorkFail = 1,
	 * PLCResultTypeCollectorBusyFail = 2,
	 * PLCResultTypeCollectorAsleep = 3,
	 * PLCResultTypeMissionInsertError = 4,
	 * PLCResultMissionPriorityError = 5;
     */
    private int status;
    
    public PLCResponse(){}
           
	public PLCResponse(Date time, int status) {
		super();
		this.time = time;
		this.status = status;
	}
	
	// getters and setters
	
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
}
